﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Uranus.WeiStationAPI.Models
{
    [Serializable]
    public class TransactionResultCommon
    {
        /// <summary>
        /// 类型 UserRegister注册 NetSave充值 InitiativeTender投标 Cash取现
        /// </summary>
        public CmdID CmdID { get; set; }

        /// <summary>
        /// 交易ID（userTransferId）
        /// </summary>
        public string OrdID { get; set; }
        
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserID { get; set; }

        /// <summary>
        /// 扩展 暂时用户区分包小宝 普通产品
        /// </summary>
        public string Extension { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderItemId { get; set; }
        
        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductCode { get; set; }
    }

    public enum CmdID
    {
        /// <summary>
        /// 注册
        /// </summary>
        UserRegister,
        /// <summary>
        /// 充值
        /// </summary>
        NetSave,
        /// <summary>
        /// 投标
        /// </summary>
        InitiativeTender,
        /// <summary>
        /// 取现
        /// </summary>
        Cash,
        /// <summary>
        /// 商户代取现
        /// </summary>
        MerCash,
        /// <summary>
        /// 快速提现
        /// </summary>
        QuickCash,
    }
}